package com.example.android09_sharedpreference0219;

import android.os.Bundle;
import android.R.string;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;

public class sub extends Activity   {
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv=new TextView(this);;//Camel Expression
        setContentView(tv);
        
        SharedPreferences pref=
        		getSharedPreferences("record", 0);
        String txt=pref.getString("text", "nothing saved");
        tv.setText(txt);
       
    }


}
